package com.imti.mall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imti.mall.model.sms.pojo.SmsFlashPromotionSession;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface FlashPromotionSessionMapper extends BaseMapper<SmsFlashPromotionSession> {

    /**
     * 关闭今日限时购
     * @param id
     * @return
     */
    @Update("update sms_flash_promotion_session set status=0 where id=#{id}")
    int closeStatusByIdTrue(@Param("id") Long id);
}
